package org.sky.sys.mapper;
import org.sky.sys.entity.SysMenu;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
import java.util.Map;

/**
* @author weifx
* @Title: SysMenuMapper
* @ProjectName platform-core
* @Description: TODO{菜单表Mapper}
* @date 2019-3-1 15:11:26
* @Version 1.0
*/
public interface SysMenuMapper extends Mapper<SysMenu>{

    /**
     * 查询用户具有的权限菜单
     */
    List<SysMenu> selectLeafMenuByUserCode(String userCode);

    /**
     * 过滤查询所有字段
     * @param example
     * @return
     */
    List<SysMenu> selectFullFieldByExample(Example example);
}